package com.xuecheng.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
// 扫描
@EntityScan("com.xuecheng.framework.domain.search") // 实体类
@ComponentScan(basePackages = {"com.xuecheng.api" }) // api接口
@ComponentScan(basePackages = {"com.xuecheng.search" }) // 本工程的所有类
@ComponentScan(basePackages = {"com.xuecheng.framework" }) // common工程下的类
@EnableDiscoveryClient//注册到eureka服务中心
public class SearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class, args);
    }

}
